<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  <meta name="robots" content="noindex, nofollow" />
  <title><%=@page_title || 'Trikr.com - an collaborate project management tool'.t%></title>
  <%= stylesheet_link_tag 'style','digg_nav_tab','calendar/grey/style' %>
  <%= javascript_include_tag "prototype","scriptaculous","append","timepicker","DynamicOptionList",'tooltip','FusionCharts'%>
  <%= javascript_include_tag "/fckeditor/fckeditor"%>
  <%= calendar_date_select_includes%>
  <link rel="shortcut icon" href="/images/favicon.ico" />
</head>
<body onload="initDynamicOptionLists();">

<%=render :partial=>'layouts/top_nav'%>
<div id="Header">
  <h1>
  <%=@project.name%> 
  <span> - <%=@cur_user.company.name if @cur_user.company%> </span>
  </h1>
  <DIV id="Tabs">
    <UL id="MainTabs">
	<%=nav_link 'Overview'.t,project_logs_path(params[:project_id])%>
	<%=nav_link 'Messages'.t,project_messages_path(params[:project_id])%>
	<%=nav_link 'Milestones'.t,project_milestones_path(params[:project_id])%>
	<%=nav_link 'To-Do'.t, project_todos_path(params[:project_id])%>
	<%=nav_link 'Writeboards'.t,project_writeboards_path(params[:project_id])%>
	<%=nav_link 'Times'.t,project_time_logs_path(params[:project_id])%>
	<%=nav_link 'Files'.t,project_files_path(params[:project_id])%>
	<%=nav_link 'Chats'.t,project_ims_path(params[:project_id])%>
 
      <span style="float:right;margin-right:30px">
        <%=nav_link 'People'.t,'/projects/' + params[:project_id] + '/people'%>
        <%=nav_link 'Permissions'.t,'/projects/' + params[:project_id] + '/permission' if @project.use_permission and @cur_user.have_power?(@project)%>
        <%=nav_link 'Project Settings'.t,'/projects/' + params[:project_id] + '/project_setting' if @cur_user.have_power?(@project)%>
        <%#nav_link image_tag("USD12.png",:border=>0,:title=>'Invite your friends to use trikr and we will pay you 20% of their payment, FOR EVER!'),"#",""%>
      </span>
   </UL>
   </DIV>
</div>
<!--header end-->

<div id="Wrapper">
  <table class="layout">
    <tr><td class="left">
        <div class="page_header">
        </div>
        <div id="content">
        <%= @content_for_layout %>
        </div>
      </td><td class="right">
      <div id="sidebar">
         <%= render :partial => 'sidebar' %>
      </div>
      </td>
      </tr>
     </table>
</div>
<div id=footer>
</div>

</body>
</html>
